\hypertarget{timer_8c}{
\section{timer.c File Reference}
\label{timer_8c}\index{timer.c@{timer.c}}
}


TinyRC -\/ Smart RC controller.  


{\ttfamily \#include $<$avr/io.h$>$}\par
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
{\ttfamily \#include \char`\"{}timer.h\char`\"{}}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{timer_8c_a4472695bac138b033a3d7fcd42dd3153}{
void {\bfseries InitTimer} (void)}
\label{timer_8c_a4472695bac138b033a3d7fcd42dd3153}

\item 
\hypertarget{timer_8c_add2d7cdddfb682dcc0391e60cf42c7d6}{
{\bfseries ISR} (TIMER0\_\-OVF\_\-vect)}
\label{timer_8c_add2d7cdddfb682dcc0391e60cf42c7d6}

\item 
\hypertarget{timer_8c_aec43762dc86e029b395d4e5819192c2d}{
{\bfseries ISR} (TIMER0\_\-COMPA\_\-vect)}
\label{timer_8c_aec43762dc86e029b395d4e5819192c2d}

\item 
\hypertarget{timer_8c_aa513bd38a02761593d0217c8497033ac}{
{\bfseries ISR} (TIMER0\_\-COMPB\_\-vect)}
\label{timer_8c_aa513bd38a02761593d0217c8497033ac}

\item 
\hypertarget{timer_8c_a51bf81bfb13197bea47fe5652e5c14bb}{
void {\bfseries Timer0\_\-init} ()}
\label{timer_8c_a51bf81bfb13197bea47fe5652e5c14bb}

\item 
\hypertarget{timer_8c_ab16889ae984b9b798989a0d239283cac}{
{\bfseries ISR} (TIMER1\_\-OVF\_\-vect)}
\label{timer_8c_ab16889ae984b9b798989a0d239283cac}

\item 
\hypertarget{timer_8c_ad39420cdd896dd12c68e36313139d0a5}{
{\bfseries ISR} (TIMER1\_\-COMPA\_\-vect)}
\label{timer_8c_ad39420cdd896dd12c68e36313139d0a5}

\item 
\hypertarget{timer_8c_a317c504c8745a1256efed69e0dbf6e66}{
{\bfseries ISR} (TIMER1\_\-COMPB\_\-vect)}
\label{timer_8c_a317c504c8745a1256efed69e0dbf6e66}

\item 
\hypertarget{timer_8c_a704821b4d760b8dfa0061a41398e98c0}{
void {\bfseries Timer1\_\-init} ()}
\label{timer_8c_a704821b4d760b8dfa0061a41398e98c0}

\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{timer_8c_ad5d10cf85bdd54a668921398512aa874}{
volatile uint8\_\-t $\ast$ {\bfseries outPort} \mbox{[}MAX\_\-OUT\_\-CH\mbox{]}}
\label{timer_8c_ad5d10cf85bdd54a668921398512aa874}

\item 
\hypertarget{timer_8c_a20b79355c07a7c4443576442715dc40a}{
uint8\_\-t {\bfseries outBit} \mbox{[}MAX\_\-OUT\_\-CH\mbox{]}}
\label{timer_8c_a20b79355c07a7c4443576442715dc40a}

\item 
\hypertarget{timer_8c_afa58776eed99e807c3d1f63aaabf3957}{
uint8\_\-t \hyperlink{timer_8c_afa58776eed99e807c3d1f63aaabf3957}{outState}}
\label{timer_8c_afa58776eed99e807c3d1f63aaabf3957}

\begin{DoxyCompactList}\small\item\em state machine status for writing output \item\end{DoxyCompactList}\item 
\hypertarget{timer_8c_af61f3c22c9d41aa1ae1d1112438521cc}{
uint16\_\-t \hyperlink{timer_8c_af61f3c22c9d41aa1ae1d1112438521cc}{interChDelay}}
\label{timer_8c_af61f3c22c9d41aa1ae1d1112438521cc}

\begin{DoxyCompactList}\small\item\em channel intermediate delay \item\end{DoxyCompactList}\item 
\hypertarget{timer_8c_aa3b033ac5ea44577435e55a9bc9b9974}{
uint16\_\-t {\bfseries sequDelay}}
\label{timer_8c_aa3b033ac5ea44577435e55a9bc9b9974}

\item 
\hypertarget{timer_8c_a76651e7d3bd2f600af7b96c161b1637d}{
uint16\_\-t {\bfseries lastTimerVal}}
\label{timer_8c_a76651e7d3bd2f600af7b96c161b1637d}

\item 
\hypertarget{timer_8c_a332122adb5128b11b69d24ad52f5c175}{
uint16\_\-t {\bfseries outData} \mbox{[}MAX\_\-OUT\_\-CH\mbox{]}}
\label{timer_8c_a332122adb5128b11b69d24ad52f5c175}

\item 
\hypertarget{timer_8c_ae0a5118198891dfdfee6dd30639082a4}{
uint8\_\-t \hyperlink{timer_8c_ae0a5118198891dfdfee6dd30639082a4}{curCh}}
\label{timer_8c_ae0a5118198891dfdfee6dd30639082a4}

\begin{DoxyCompactList}\small\item\em the current output channel \item\end{DoxyCompactList}\item 
\hypertarget{timer_8c_a624a1810b90b44933764a42c9ca385aa}{
uint8\_\-t {\bfseries timer0Cycle} = 0}
\label{timer_8c_a624a1810b90b44933764a42c9ca385aa}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
TinyRC -\/ Smart RC controller. Hausbus Controller for Hut-\/Montage


\begin{DoxyItemize}
\item File: timer
\item Compiler: AVRGCC
\item Supported devices: ATTiny45
\end{DoxyItemize}

\begin{DoxyAuthor}{Author}
Stephan Harms email: \href{mailto:avr@stephanharms.de}{\tt avr@stephanharms.de}
\end{DoxyAuthor}
\begin{DoxyParagraph}{Name}
RELEASE\_\-1\_\-0 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Revision}
1.0 
\end{DoxyParagraph}
\begin{DoxyParagraph}{RCSfile}
timer,v 
\end{DoxyParagraph}
\begin{DoxyParagraph}{Date}
2010/04/05 
\end{DoxyParagraph}
